/*
    BibleNotebook - A bible reader software
    Copyright (C) 2014  Williams Fernando Lopez

    This program is free software: you can redistribute it and/or modify
    it under the terms of the GNU General Public License as published by
    the Free Software Foundation, either version 3 of the License, or
    (at your option) any later version.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    GNU General Public License for more details.

    You should have received a copy of the GNU General Public License
 */

package com.simplebible.ui.components.editors;

import java.awt.Container;
import java.io.File;
import javax.swing.event.HyperlinkListener;

/**
 *
 * @author Williams Lopez
 */
public interface Editor {

    public void save() throws Exception;
    public void dispose();
    public void open(File file) throws Exception;
    public void show() throws Exception;
    public void addTextOnCursorPosition(String text);
    public void addTextOnDocumentFinal(String text);
    public void addTextOnDocumentStart(String text);
    public Container getContentPane();
    public void renameFile(String newFileName) throws Exception;
    public void requestFocusToText();
    public boolean isFileOpen();
    public File getOpenFile();
    public void addHyperlinkListener(HyperlinkListener l);

}
